/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.grupecinc.model.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQuery;

/**
 *
 * @author Kaynan
 */
@Entity
@NamedQuery(name = "DiariaBy", query = "SELECT diaria FROM Diaria diaria")
public class Diaria {

    @Id
    @GeneratedValue
    private int id;
    private int tipo;
    private double valor;

    public Diaria() {
    }

    public Diaria(int tipo, double valor) {
        this.tipo = tipo;
        this.valor = valor;
    }

    public int getTipo() {
        return tipo;
    }

    public void setTipo(int tipo) {
        this.tipo = tipo;
    }

    public double getValor() {
        return valor;
    }

    public void setValor(double valor) {
        this.valor = valor;
    }

    @Override
    public String toString() {
        return "Diaria{" + "tipo=" + tipo + ", valor=" + valor + '}';
    }

}
